<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <title>数据统计原型</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          -apple-system,
          BlinkMacSystemFont,
          'Helvetica Neue',
          Helvetica,
          Segoe UI,
          Arial,
          Roboto,
          'PingFang SC',
          'miui',
          'Hiragino Sans GB',
          'Microsoft Yahei',
          sans-serif;
        background-color: #f7f8fa;
        color: #323233;
        line-height: 1.5;
      }

      .app-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .app-header h1 {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }

      .header-actions {
        display: flex;
        gap: 15px;
      }

      .header-actions button {
        background: none;
        border: none;
        position: relative;
      }

      .stats-page {
        padding: 15px;
        padding-bottom: 70px;
      }

      .filter-section {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        padding: 15px;
      }

      .filter-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
      }

      .filter-row:last-child {
        margin-bottom: 0;
      }

      .filter-label {
        font-size: 14px;
        color: #666;
      }

      .filter-value {
        font-size: 14px;
        color: #1989fa;
      }

      .stats-tabs {
        display: flex;
        background: white;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-button {
        flex: 1;
        padding: 12px;
        text-align: center;
        background: none;
        border: none;
        font-size: 14px;
        color: #666;
        position: relative;
      }

      .tab-button.active {
        color: #1989fa;
        font-weight: bold;
      }

      .tab-button.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: #1989fa;
        border-radius: 3px;
      }

      .chart-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        overflow: hidden;
        padding: 15px;
      }

      .chart-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 15px;
      }

      .chart-container {
        height: 200px;
        position: relative;
        margin-bottom: 15px;
      }

      .chart-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #f9f9f9;
        border-radius: 4px;
      }

      .chart-icon {
        font-size: 36px;
        margin-bottom: 10px;
        color: #1989fa;
      }

      .chart-text {
        font-size: 14px;
        color: #666;
      }

      .data-summary {
        display: flex;
        flex-wrap: wrap;
      }

      .summary-item {
        width: 50%;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .summary-value {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5px;
      }

      .summary-label {
        font-size: 12px;
        color: #999;
      }

      .tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: white;
        display: flex;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 12px;
      }

      .tab-item.active {
        color: #1989fa;
      }

      .tab-icon {
        font-size: 20px;
        margin-bottom: 3px;
      }
    </style>
  </head>
  <body>
    <div class="app-header">
      <h1>数据统计</h1>
      <div class="header-actions">
        <button>
          <span>⚙️</span>
        </button>
      </div>
    </div>

    <div class="stats-page">
      <div class="filter-section">
        <div class="filter-row">
          <div class="filter-label">时间范围</div>
          <div class="filter-value">最近30天</div>
        </div>
        <div class="filter-row">
          <div class="filter-label">数据类型</div>
          <div class="filter-value">全部</div>
        </div>
      </div>

      <div class="stats-tabs">
        <button class="tab-button active">客户</button>
        <button class="tab-button">合同</button>
        <button class="tab-button">案件</button>
      </div>

      <div class="chart-card">
        <div class="chart-title">客户增长趋势</div>
        <div class="chart-container">
          <div class="chart-placeholder">
            <div class="chart-icon">📈</div>
            <div class="chart-text">客户增长趋势图表</div>
          </div>
        </div>
        <div class="data-summary">
          <div class="summary-item">
            <div class="summary-value">28</div>
            <div class="summary-label">本月新增客户</div>
          </div>
          <div class="summary-item">
            <div class="summary-value">+12%</div>
            <div class="summary-label">环比增长</div>
          </div>
          <div class="summary-item">
            <div class="summary-value">156</div>
            <div class="summary-label">累计客户</div>
          </div>
          <div class="summary-item">
            <div class="summary-value">85%</div>
            <div class="summary-label">客户留存率</div>
          </div>
        </div>
      </div>

      <div class="chart-card">
        <div class="chart-title">客户行业分布</div>
        <div class="chart-container">
          <div class="chart-placeholder">
            <div class="chart-icon">🍩</div>
            <div class="chart-text">客户行业分布图表</div>
          </div>
        </div>
      </div>
    </div>

    <div class="tab-bar">
      <div class="tab-item">
        <div class="tab-icon">🏠</div>
        <div>首页</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">👥</div>
        <div>客户</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">📄</div>
        <div>合同</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">⚖️</div>
        <div>案件</div>
      </div>
      <div class="tab-item active">
        <div class="tab-icon">📊</div>
        <div>统计</div>
      </div>
    </div>
  </body>
</html>
